package com.example.qiandao.controller.responsedto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StudentDTO {
    @JsonProperty("studentId")
    private Long id;
    @JsonProperty("studentName")
    private String name;
    @JsonProperty("role")
    private int role;

    public StudentDTO(Long id, String name, int role) {
        this.id = id;
        this.name = name;
        this.role = role;
    }
}